﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SilowniaFitness.Controls
{
    public partial class Rotator : System.Web.UI.UserControl
    {
        protected String Images = "";
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        

        public String addImage(string url, string head, string bottom)
        {            
            RotatorItem rt = (RotatorItem)Page.LoadControl("~/Controls/RotatorItem.ascx");
            rt.ImageURL = url;
            rt.HeadText = head;
            rt.BottomText = bottom;
            slideshow.Controls.Add(rt);
            return "";
        }
    }
}